<?php
/**
 * @author Nguyễn Sơn Tùng <sontung.x305@gmail.com> <YM :terminator_nst>
 * @version 1.0
 * @copyright fteam.vn
 * Date: 24/04/2012
 * Time: 16:28
 */
class FController extends RController {

    public $layout='//layouts/main';

    private $_assetsUrl;

    public function getAssetsUrl()
    {
        if($this->_assetsUrl===null)
            $this->_assetsUrl=Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('application.assets'));
        return $this->_assetsUrl;
    }
    public function setAssetsUrl($value)
    {
        $this->_assetsUrl=$value;
    }

    /**
     * Filter by using Modules Rights
     *
     * @return type
     */
    public function filters()
    {
        return array(
            'rights',
        );
    }

    /**
     * List of allowd default Actions for the user
     * @return type
     */
    public function allowedActions()
    {
        return 'login,logout';
    }
}